package com.quwan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.quwan.entity.TCircleComment;
import com.quwan.manager.controller.dto.CircleCommentDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author laozhang
 * @date 2022/3/17
 */
public interface TCircleCommentMapper extends BaseMapper<TCircleComment> {

    Page<CircleCommentDto> selectCircleCommentDtoList(Page<Map<String, String>> page,
                                        @Param("circleId")  Long circleId,
                                        @Param("beginTime") String beginTime,
                                        @Param("endTime") String endTime);

    List<CircleCommentDto> selectCircleCommentDtoList(
            @Param("circleId")  Long circleId,
            @Param("beginTime") String beginTime,
            @Param("endTime") String endTime);

    int delCircleCommentByCircleId(@Param("circleId") Long circleId);

    Page<CircleCommentDto> selectCommentList(Page<Object> objectPage, @Param("id") String id);
}
